package com.flyme.module.base.client.api;

import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import com.flyme.module.base.client.entity.SysExamseason;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/examseason/")
public interface SysExamseasonRemoteService {

    /**
     * 考试安排列表
     */
    @PostMapping("/list")
    ResultBody list(@ModelAttribute PagerInfo pagerInfo, @ModelAttribute SysExamseason examseason);

    /**
     * 根据考试id查询详情
     */
    @GetMapping("/get/{id}")
    ResultBody get(@PathVariable Long id);

    /**
     * 添加/修改
     */
    @PostMapping("/sessionsEdit")
    ResultBody sessionsEdit(@ModelAttribute SysExamseason examseason, String examTimeDate);

    /**
     * 开启/关闭考试
     */
    @PostMapping("/setSessionsStatus")
    ResultBody setSessionsStatus(@RequestParam Long id, @RequestParam Integer status);


}
